<template>
	<view>
		<z-swiper v-model="list" :options="optionsAutoplay">
			<z-swiper-item :custom-style="slideCustomStyle" v-for="(item,index) in list" :key="index">
				<album-item :custom-style="itemCustomStyle" :item="item"></album-item>
			</z-swiper-item>
		</z-swiper>
	</view>
</template>

<script>
	import data from '../../common/data.js'
	export default {
		data() {
			return {
				slideCustomStyle: {
					display: 'flex',
					alignItems: 'center',
					justifyContent: 'center'
				},
				itemCustomStyle: {
					"height": "640rpx",
					"width": "480rpx",
					"border-radius": "24rpx"
				},
				options: {
					effect: 'cards'
				},
				optionsAutoplay: {
					effect: 'cards',
					autoplay: true
				},
				optionsVertical: {
					effect: 'cards',
					direction: 'vertical'
				},
				optionsRotate: {
					effect: 'cards',
					cardsEffect: {
						rotate: false
					}
				},
				optionsOffset: {
					effect: 'cards',
					cardsEffect: {
						perSlideOffset: 14
					}
				},
				optionsRotateNumber: {
					effect: 'cards',
					cardsEffect: {
						perSlideRotate: 20
					}
				},
				optionsLoop: {
					effect: 'cards',
					loop: true,
					loopedSlides: 2,
				},
				list: data,
				loopList: data,
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
